package com.itheima.demo4_继承的访问规则.p05同名内容;

public class Test {
    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.method();
        System.out.println(zi.num);
    }
}
class Fu{
    int num =10;
    public void method(){
        System.out.println("Fu method");
    }
}

class Zi extends Fu{
    int num = 999;
    public void method(){
        System.out.println("Zi method");
    }
}